<?php
namespace Modules\Search\Models;

use Core\Mvc\Collection;

class Search extends Collection
{
    public $word;
    public $project;
    public $hot = 0;

    public function beforeSave(){
        $this->hot = intval($this->hot);
    }

    public function hot(){
        $this->hot = intval($this->hot) + 1;
        $this->save();
    }
}
